package bookstore.domain;

public interface CODE {
	// <Function Code
	int SHOP_LOGIN = 110;

	// Host
	int HOST = 2;
	int HOST_STOCK = 210;
	int HOST_STOCK_LIST = 211;
	int HOST_STOCK_ADD = 212;
	int HOST_STOCK_MODIFY = 213;
	int HOST_STOCK_DEL = 214;
	int HOST_STOCK_VIEW = 215;

	int HOST_SELL = 220;
	int HOST_SELL_LIST = 221;
	int HOST_SELL_SEND = 222;
	int HOST_SELL_CANCEL = 223;

	// Guest
	int GUEST = 3;
	int GUEST_BUY = 310;
	int GUEST_BUY_LIST = 311;
	int GUEST_BUY_BUY = 312;

	int GUEST_CART = 320;
	int GUEST_CART_LIST = 321;
	int GUEST_CART_DEL = 322;
	int GUEST_CART_PAY = 323;	

	// Order Status
	int ORDER_STATUS_INIT = 0;   // READY
	int ORDER_STATUS_SEND = 1;   // SEND
	int ORDER_STATUS_CANCEL = 2; // CANCEL
	// Function Code>

	
	// Login ID & PW
	String HOST_LOGIN_INFO = "admin";
	String GUEST_LOGIN_INFO = "guest";	
	

	// DAO File
	String dir = "c:/save/";
	String BOOKSHELF = dir + "shelf.dat";
	String ORDERS = dir + "orders.dat";
	
	
	// Max & Min
	int BOOK_CODE_MAX = 9999;
	int BOOK_CODE_MIN = 1000;
	int ORDER_CODE_MAX = 999;
	int ORDER_CODE_MIN = 100;
}